import service from '@/utils/request'


export const communityApi = (id: number) => {
	return service.get('/new/new/community/' + id)
}

export const communityListApi = () => {
	return service.get('/new/new/community/allList')
}

export const communitySubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/new/new/community', dataForm)
	} else {
		return service.post('/new/new/community', dataForm)
	}
}


export const orgCommunityListApi = (data: any) => {
	return service.post('/new/new/community/orgCommunity', data)
}

